import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElIconModules from '@element-plus/icons-vue'

// import 'element-plus/lib/theme-chalk/index.css'
// import 'element-plus/packages/theme-chalk/src/base.scss'

// import 'dayjs/locale/zh-cn'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

export default {
  install(app) {
    app.use(ElementPlus, {
      locale: zhCn,
    })

    Object.keys(ElIconModules).forEach(function (key) {
      app.component(ElIconModules[key].name, ElIconModules[key])
    })
  },
}
